package ooday2zy;

public class Fish extends Animal{
    Fish(String name,int age,String color){
        super(name,age,color);
    }
    void eat(){
        System.out.println(age+"的"+name+"是"+color+"的，它在吃鱼食");

    }



    }










    /*
    Fish(String name,int age,String color){
        super(name,age,color);
    }
    void eat(){
        System.out.println(age+"的"+name+"是"+color+"的，它在吃鱼食");

    }



     */








